import config from 'configModule'
import tools from 'utilsDir/tools.js'
import content from './templates/main.ejs'
import layout from 'layout'
import loginBox from './templates/login-box.ejs'
import forgetPasswordHtml from './templates/forget-password-box.html'

const dirsConfig = config.DIRS;

const loginBoxHtml = loginBox({
  constructInsideUrl: tools.constructInsideUrl,
});

const renderData = Object.assign({}, dirsConfig, { loginBoxHtml, forgetPasswordHtml });

export default layout.init({
  pageTitle: '',
}).run(content(renderData));
